import java.io.*;

/*
    转换流：InputStreamReader

 */
public class BufferedReaderTest02 {
    public static void main(String[] args) throws IOException {
        /*//字节流
        FileInputStream in = new FileInputStream("chapter21\\src\\FileCopyTest01.java");
        //字符流，通过转换流转换成字符流
        //in是节点流，reader是包装流
        InputStreamReader reader = new InputStreamReader(in);
        //缓冲流
        //reader是节点流，br是保包装流
        BufferedReader br = new BufferedReader(reader);*/

        //合并
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("chapter21\\src\\FileCopyTest01.java")));

        String line = null;
        while((line = br.readLine()) != null){
            System.out.println(line);

        br.close();
        }
    }
}
